package com.boyunv.composite.example01;
/*
 *@description
 * 抽象根节点角色:  对客户端而言,只需要针对抽象编程,无需关心具体子类是树枝i节点还是叶子节点
 *@author boyunv
 *@create 2023/7/27 7:32
 *@version 1.0
 */

public abstract class Component {
 public abstract void add(Component c);//add节点

 public abstract void remove(Component c);//delete 节点

 public abstract Component getChild(int i);//获取节点

 public abstract void operation();//业务方法
}
